package main

import (
	"fmt"
	"os"
	"path/filepath"
	"testing"
)

func TestDir(t *testing.T) {
	dir, err := os.Getwd()
	if err != nil {
		t.Fatal(err)
	}
	t.Log(dir)
}

func TestFilePath(t *testing.T) {
	dir, _ := os.Getwd()
	var path = filepath.Join(dir, "certificate")
	var info, err = os.Stat(path)
	if err != nil {
		t.Fatal(err)
	} else {
		fmt.Println(info)
	}
}
